package com.nuc.iblog.jpa.ms;

import com.nuc.iblog.entity.Announcement;
import com.nuc.iblog.jpa.BaseJpa;
import org.springframework.data.jpa.repository.Query;

public interface MSAnnouncementJpa extends BaseJpa<Announcement,Integer> {
    @Query(value = "select * from announcement order by adate desc limit 1" ,nativeQuery = true )
    public Announcement getLatestAnnouncement();
}
